import React from 'react';
import { BrowserRouter,HashRouter,Routes,Route } from "react-router-dom";
import Reg from './pages/Reg';
import Login from './pages/Login'
import Manage from './pages/Manage';
import Student from './pages/Student';
import Class from './pages/Class';
import Teacher from './pages/Teacher';
export default function(){
    return <BrowserRouter>
        <Routes>
            <Route index element={<Login />} />
            <Route path="/login" element={<Login></Login>}></Route>
            <Route path="/reg" element={<Reg></Reg>}></Route>
            <Route path="/manage" element={<Manage></Manage>}>
                <Route path="student" element={<Student></Student>}></Route>
                <Route path="class" element={<Class></Class>}></Route>
                <Route path="teacher" element={<Teacher></Teacher>}></Route>
            </Route>
        </Routes>
    </BrowserRouter>
}